import request from '@/utils/request'

// 查询商品通过总人气排序
export const queryProductsByTotalPopularity = (pageNum = 1, pageSize = 10) => {
  return request({
    url: '/popularity/total',
    method: 'get',
    params: {
      pageNum,
      pageSize
    }
  })
}

// 获取全部的商品
export const getAllProduct = () => {
  return request({
    url: '/product/getAll',
    method: 'GET'
  })
}
